package com.lh.common.entity.admin;

import com.lh.common.enums.IF;
import com.lh.common.enums.OrderStatusEnum;
import com.lh.common.enums.OrderTypeEnum;
import com.lh.common.enums.PayType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.List;

/**
 * @author FH
 * @ClassName: OrderDetail
 * @Description: (类作用)
 * @date: 2020-05-19 9:22
 */
@Alias("orderDetail")
@Data
public class OrderDetail implements Serializable {

    @ApiModelProperty(value = "订单状态  TOPAY:待付款; INPAY:支付中; TOSHIP:待发货; OUTSTOCK:已出库; SHIPED:已发货; COMPLETED:已完成;  CANCELLED:已取消; ACTIVITYLOSE:支付失败;REFUNDING:退款中;REFUNDED:完成退款")
    private OrderStatusEnum orderStatus;

    @ApiModelProperty(value = "出库按钮是否可操作  YES:可以; NO:不可以;")
    @Column(name = "type")
    private IF type;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "订单类型  1:一元抢购  2:普通商品")
    private OrderTypeEnum orderType;

    @ApiModelProperty(value = "物流公司")
    private String expressName;

    @ApiModelProperty(value = "快递单号")
    private String expressCode;

    @ApiModelProperty(value = "收货人")
    private String receiveRecipients;

    @ApiModelProperty(value = "收货人手机号")
    private String receivePhone;

    @ApiModelProperty(value = "区域")
    private String region;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "详细地址")
    private String detailed;

    @ApiModelProperty(value = "订单编号")
    private String orderItem;

    @ApiModelProperty(value = "订单时间")
    private String createTime;

    @ApiModelProperty(value = "支付单号")
    private String payOrderNumber;

    @ApiModelProperty(value = "支付时间")
    private String payTime;

    @ApiModelProperty(value = "支付方式  PAYPAL：payPal支付")
    private PayType payType;

    @ApiModelProperty(value = "商品信息")
    private List<OrderShop> orderShop;

    @ApiModelProperty(value = "订单日志")
    private List<OrderLog> orderLog;
}
